import test from 'ava';
import to_string from '../../../dist/core/num/to-string';

test('to_string', (t) => {
	t.is(to_string(2018.123), '2018.123');
	t.is(to_string(2018.123, 2), '2018.12');
	t.is(to_string(2018.123), '2018.123');
	t.is(to_string(2018e123), '2.018e+126');
});
